package com.taiyo.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.taiyo.modules.api.dao.TDiscountDao;
import com.taiyo.modules.api.entity.TDiscountEntity;
import com.taiyo.modules.api.service.TDiscountService;



@Service("tDiscountService")
public class TDiscountServiceImpl implements TDiscountService {
	@Autowired
	private TDiscountDao tDiscountDao;
	
	@Override
	public TDiscountEntity queryObject(Long id){
		return tDiscountDao.queryObject(id);
	}
	
	@Override
	public List<TDiscountEntity> queryList(Map<String, Object> map){
		return tDiscountDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tDiscountDao.queryTotal(map);
	}
	
	@Override
	public void save(TDiscountEntity tDiscount){
		tDiscountDao.save(tDiscount);
	}
	
	@Override
	public void update(TDiscountEntity tDiscount){
		tDiscountDao.update(tDiscount);
	}
	
	@Override
	public void delete(Long id){
		tDiscountDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tDiscountDao.deleteBatch(ids);
	}
	
}
